<template>
  <!-- <div id="nav"> -->
    <!-- <button @click="$store.commit('user/updateName',Math.random()*100)">按钮</button> -->
  <!-- </div> -->
  <!-- 以及路由挂载点 -->
  <router-view/>
</template>
<script >
// import request from '@/utils/request.js'
// export default {
//   created () {
//     request('/home/new/simple', 'get', { abc: 1, b: 2 }).then((res) => {
//       console.log('获取数据：', res)
//     })
//   }
// }
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
